package org.liuqm.mapper;

import org.apache.ibatis.annotations.Param;
import org.liuqm.pojo.StorageRecord;
import org.liuqm.pojo.vo.StorageRecordVO;

import java.util.List;

/**
* @author 10261
* @description 针对表【storage_record(入库记录)】的数据库操作Mapper
* @createDate 2024-11-21 11:29:06
* @Entity org.liuqm.pojo.StorageRecord
*/
public interface StorageRecordMapper {


    /**
     * 查询当前页显示的记录数
     * @param goodsName
     * @param supplierId
     * @param payStatus
     * @param pageIndex
     * @param pageSize
     * @return
     */
    List<StorageRecordVO> getPageList(@Param("goodsName") String goodsName, @Param("supplierId")Integer supplierId, @Param("payStatus")Integer payStatus, @Param("pageIndex")Integer pageIndex, @Param("pageSize")Integer pageSize)  ;

    /**
     * 查询总记录数
     * @param goodsName
     * @param supplierId
     * @param payStatus
     * @return
     */
    Long getCount(@Param("goodsName") String goodsName, @Param("supplierId")Integer supplierId, @Param("payStatus")Integer payStatus);


    /**
     * 查询入库单详情
     * @return
     */
    StorageRecordVO getStorageRecordById(Integer id)  ;

}




